import request from '@/utils/request'

export function list(params) {
  return request({
    url: '/newCard/getList',
    method: 'get',
    params: params
  })
}

export function SynCardNetType(map) {
  return request({
    url: '/newCard/SynCardNetType',
    method: 'post',
    data: map
  })
}

export function SynCardAll(map) {
  return request({
    url: '/newCard/SynCardAll',
    method: 'post',
    data: map
  })
}

export function SynUpdateCardStatus(map) {
  return request({
    url: '/newCard/SynUpdateCardStatus',
    method: 'post',
    data: map
  })
}

export function SynCardChangeHistory(map) {
  return request({
    url: '/newCard/SynCardChangeHistory',
    method: 'post',
    data: map
  })
}

export function SynCardLocal(map) {
  return request({
    url: '/newCard/SynCardLocal',
    method: 'post',
    data: map
  })
}

export function exportRegionData(map) {
  return request({
    url: '/newCard/exportRegionData',
    method: 'post',
    responseType: 'arraybuffer',
    data: map
  })
}

export function apnInfo(map) {
  return request({
    url: '/newCard/apnInfo',
    method: 'post',
    data: map
  })
}
